import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from "path";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    port: 5000,//
    proxy: {
      "/yunji-api": {
        target: "http://123.57.206.19:8081/",
        changeOrigin: true,
      
      }
    },
  },

  resolve: {
    // 配置路径别名
    alias: {
      '@': path.resolve(__dirname, './src'),
    }
  },
  
})
